package net.ibizsys.eclipse.studio.xml;

import net.ibizsys.eclipse.studio.util.StringKit;

/**
 * 
 * @author <a href='http://www.weibo.com/xjtoo' target='_blank'>Enmaai</a>
 */
public class IBizDEReport extends IBizSearchableNode
{
	public static final String NODE_PSDEREPORT = "PSDEREPORT";

	@Override
	public String getText()
	{
		return String.format("[报表]%1$s", getName());
	}

	@Override
	public boolean match(String keyword)
	{
		if (super.match(keyword))
		{
			return true;
		}
		if (StringKit.has(getText(), keyword) || StringKit.has(NODE_PSDEREPORT, keyword))
		{
			return true;
		}

		return false;
	}
}
